package com.wf.service;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author mpk
 * @since 2024/8/25 18:41:04
 */
@Slf4j
@Service
public class SendSuccessEmailService implements JavaDelegate {


    @Override
    public void execute(DelegateExecution execution) {
        Map<String, Object> variables = execution.getVariables();
        System.out.println(variables);
        log.info("流程执行成功，发送邮件");

    }
}
